@extends('home.home')
@section('content')	
<div class="container">
	<div class="check">	 
			 <h1>共有（{{$cnt->cnt}}）件商品</h1>
		
		 <div class="col-md-9 cart-items">
		 @foreach($data as $row)
			 <div class="cart-header">

				 <a href="{{ url('/home/cart/delete')}}/{{$row -> cid}}"><div class="close1"> </div></a>
				
				 <div class="cart-sec simpleCart_shelfItem">

						<div class="cart-item cyc">
							 <img src="{{asset($row -> gpic)}}" class="img-responsive" alt=""/>
						</div>
					   <div class="cart-item-info">

						<h3><a href="#">衣服名称{{ $row -> gname}}</a><span>型号: 3578</span></h3>
						
						<ul class="qty">
							<li><p>尺寸 : 5</p></li>
							<li><p>数量 :{{$row ->count}} </p></li>
							<li><p>小计 :{{$row->count* $row->price}} </p></li>
                        <div style="margin-left: 600px;" class="ccc">
                        <input class="checkbox" type="checkbox" name="check[]"  value="{{$row -> cid}}" />
                        </div>
						</ul>

						
							 <div class="delivery">
							 <p>价格 : {{$row -> price}}</p>
							 <span>快递在2-3天后送到</span>
							 <div class="clearfix"></div>
				        </div>	
					   </div>
					   <div class="clearfix"></div>
											
				  </div>
			 </div>
		@endforeach
		 </div>
		 
		  <div class="col-md-3 cart-total">
			 <a class="continue" href="{{url('/home/good/index')}}">继续购物</a>
			 <div class="price-details">
				 <h3>价格详情</h3>
				 <span>总计</span>
				 <span class="total1">{{$sum}}</span>
				 <span>折扣</span>
				 <span class="total1">---</span>
				 <span>快递费</span>
				 <span class="total1">150.00</span>
				 <div class="clearfix"></div>				 
			 </div>	
			 <ul class="total_price">
			   <li class="last_price"> <h4>总</h4></li>	
			   <li class="last_price"><span>{{$sum}}</span></li>
			   <div class="clearfix"> </div>
			 </ul>
			
			 
			 <div class="clearfix"></div>
			 <a class="order" href="{{url('/home/order/index')}}">下订单</a>
			 <div class="total-item">
				 <h3>选项</h3>
				 <h4>优惠卷</h4>
				 <a class="cpns" href="#">选择优惠卷</a>
				 <p><a href="#">登录</a> 使用账号--连接优惠卷</p>
			 </div>
			</div>
		
			<div class="clearfix"> </div>
	 </div>
	 </div>
   <script>
         
   </script>

<!--//content-->
@endsection
			